home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 1.5)
-
- verbose
- test('atoi', ' 1 ', 1)
- test('atoi', ' 1x', ValueError)
- test('atoi', ' x1 ', ValueError)
- test('atol', ' 1 ', 0x1L)
- test('atol', ' 1x ', ValueError)
- test('atol', ' x1 ', ValueError)
- test('atof', ' 1 ', 1.0)
- test('atof', ' 1x ', ValueError)
- test('atof', ' x1 ', ValueError)
- test('capitalize', ' hello ', ' hello ')
- test('capitalize', 'hello ', 'Hello ')
- test('find', 'abcdefghiabc', 0, 'abc')
- test('find', 'abcdefghiabc', 9, 'abc', 1)
- test('find', 'abcdefghiabc', -1, 'def', 4)
- test('rfind', 'abcdefghiabc', 9, 'abc')
- test('lower', 'HeLLo', 'hello')
- test('upper', 'HeLLo', 'HELLO')
- test('maketrans', 'abc', transtable, 'xyz')
- test('maketrans', 'abc', ValueError, 'xyzq')
- test('split', 'this is the split function', [
- 'this',
- 'is',
- 'the',
- 'split',
- 'function'])
- test('split', 'a|b|c|d', [
- 'a',
- 'b',
- 'c',
- 'd'], '|')
- test('split', 'a|b|c|d', [
- 'a',
- 'b',
- 'c|d'], '|', 2)
- test('split', 'a b c d', [
- 'a',
- 'b c d'], None, 1)
- test('split', 'a b c d', [
- 'a',
- 'b',
- 'c d'], None, 2)
- test('split', 'a b c d', [
- 'a',
- 'b',
- 'c',
- 'd'], None, 3)
- test('split', 'a b c d', [
- 'a',
- 'b',
- 'c',
- 'd'], None, 4)
- test('split', 'a b c d', [
- 'a',
- 'b',
- 'c',
- 'd'], None, 0)
- test('split', 'a b c d', [
- 'a',
- 'b',
- 'c d'], None, 2)
- test('join', [
- 'a',
- 'b',
- 'c',
- 'd'], 'a b c d')
- test('join', ('a', 'b', 'c', 'd'), 'abcd', '')
- test('join', Sequence(), 'w x y z')
- print strop.join([
- 'x' * 100] * 100, ':')
- print strop.join(('x' * 100,) * 100, ':')
- test('strip', ' hello ', 'hello')
- test('lstrip', ' hello ', 'hello ')
- test('rstrip', ' hello ', ' hello')
- test('swapcase', 'HeLLo cOmpUteRs', 'hEllO CoMPuTErS')
- test('translate', 'xyzabcdef', 'xyzxyz', transtable, 'def')
- test('replace', 'one!two!three!', 'one@two!three!', '!', '@', 1)
- test('replace', 'one!two!three!', 'one@two@three!', '!', '@', 2)
- test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 3)
- test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 4)
- test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 0)
- test('replace', 'one!two!three!', 'one@two@three@', '!', '@')
- test('replace', 'one!two!three!', 'one!two!three!', 'x', '@')
- test('replace', 'one!two!three!', 'one!two!three!', 'x', '@', 2)
- strop.whitespace
- strop.lowercase
- strop.uppercase
-